<template>
  <projectDetail
    :docProjectId="projectId"
    :type="type"
    @isShow="isShow"
    :id="id"
  ></projectDetail>
</template>

<script>
import projectDetail from '@/components/monitorProjectManagement/projectDetail'
export default {
  name: 'projectIncludeDetailSh',
  components: {
    projectDetail,
  },
  data() {
    return {
      projectId: '',
      type: '',
      id: '',
    }
  },
  created() {
    this.projectId = this.$route.query.projectId
    this.type = this.$route.query.type
    this.id = this.$route.query.id
  },
  methods: {
    isShow(data) {
      this.$router.push({
        path: '/project/projectDeclareDetail',
        name: 'projectDeclareDetail',
        query: {
          projectId: this.projectId,
          id: this.id,
        },
      })
      this.$store.commit('CHANGE_SLIDER_NAME', {
        oldUrl: '/home/project/projectAuditList',
        newUrl: this.$router.currentRoute.fullPath,
      })
    },
  },
}
</script>

<style scoped></style>
